<?php
namespace App\Lib;
use Swoft\Core\ResultInterface;

/**
 * Interface Product
 * @package App\Lib
 * @method ResultInterface deferGetStock(int $pid)
 */

interface Product
{
    /**
     * @param int $pid
     * @return mixed
     * 获取商品库存
     */
    public function getStock(int $pid);
}
